﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using simpleHotel.Business;

namespace simpleHotel.Web
{
    public partial class HotelImages : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                HotelBLL obj = new HotelBLL();

                if (Request.Params["hotelID"] != null)
                {
                    obj.GetHotelImages(Int32.Parse(Request.Params["hotelID"]+""),0, lLargeImg, lThumbImg);
                }

                else if (Request.Params["hid"] != null && Request.Params["rid"] != null)
                {
                    obj.GetHotelImages(Int32.Parse(Request.Params["hid"] + ""), Int32.Parse(Request.Params["rid"]+""), lLargeImg, lThumbImg);
                }
            }
        }

        

    }
}